package io.renren.service;

import io.renren.common.service.CrudService;
import io.renren.dto.WxuserDTO;
import io.renren.entity.WxuserEntity;

/**
 * ${comments}
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2024-05-20
 */
public interface WxuserService extends CrudService<WxuserEntity, WxuserDTO> {

    WxuserDTO getByWxuseroid(String id);

    WxuserEntity findOneByOpenId(String openId);

    void updateTradermFk(WxuserEntity wxUserInfo);

    void updateFkAndRemarkByWxUserId(String tradermFk, String mobile, String wxUserFk);

    WxuserEntity findOneByUnionid(String unionid);

    void updateWxOpenIdByUnionId(WxuserEntity wxuserEntity);

    WxuserEntity findOneByMiniOpenId(String openId);

    void updateUnionIdByMiniOpenId(WxuserEntity wxuserEntity);

    WxuserEntity findOneByWxOpenid(String openId);

    void updateUnionIdByWxOpenId(WxuserEntity wxuserEntity2);

    WxuserEntity findOneByWXUserOid(String userId);

    void setWxOpenIdIsNull(String wxuseroid);

    WxuserEntity findOneByTraderMOID(String traderMOID);

    void setTraderMFKIsNull(String wxuseroid);
}